<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

/** 
 * 
 * 注：路由规则: 真实模块名/真实控制器名/真实方法名，严禁名称转换！
 *
 */

Route::get('think', function () {
    return 'hello,ThinkPHP5!';
});

Route::rule('/', 'index/index/index');

Route::group('index', function () {
    Route::rule('/index/index', 'index/index/index');
    Route::rule('/login/login', 'index/login/login');
    Route::rule('/login/logout', 'index/login/logout');
    Route::rule('/login/sendcode', 'index/login/sendcode');
});

Route::group('home', function () {
    Route::rule('/index/index', 'home/index/index');
    Route::rule('/index/menu', 'home/index/menu');
});

Route::group('statis', function () {
    Route::rule('/index/userStatis', 'statis/index/userStatis');
});

Route::group('auth', function () {
    Route::rule('/rule/index', 'auth/rule/index');
    Route::rule('/rule/add', 'auth/rule/add');
    Route::rule('/rule/edit', 'auth/rule/edit');
    Route::rule('/rule/del', 'auth/rule/del');

    Route::rule('/group/index', 'auth/group/index');
    Route::rule('/group/add', 'auth/group/add');
    Route::rule('/group/edit', 'auth/group/edit');
    Route::rule('/group/del', 'auth/group/del');
});

return [];
